package com.yc.myspringboot.listener.demo1;

import org.springframework.context.ApplicationEvent;

/**
 * 定义事件
 * @author yuancan
 *
 */
public class EventDemo extends ApplicationEvent {
	
	private String message;

	public EventDemo(Object source, String message) {
		super(source);
		this.message = message;
	}
	
	public String getMessage() {
		return message;
	}

}
